package edu.hzit.data.mapper;

import edu.hzit.data.entity.Memorandum;
import edu.hzit.data.entity.TongXunLu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MemorandumMapper {
    /**
     * 插入
     * @param memorandum
     * @return
     */
    public int insert(Memorandum memorandum);
    /**
     * 查询全部
     * @return
     */
    public List<Memorandum> loadList();
    /**
     * 根据bId查询
     * @param bId
     * @return
     */
    public Memorandum selectById(int bId);
    /**
     * 根据bId删除
     * @param bId
     * @return
     */
    public int delete(int bId);
    /**
     * 根据bId更新
     * @param memorandum
     * @return
     */
    public int update(Memorandum memorandum);

    /**
     * 模糊查询
     * @param content
     * @return
     */
    public List<Memorandum> fuzzySearch(String content);
}
